Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-37400: Fix test_os.test_chown() #14374

Merged
merged 1 commit into from
Jun 25, 2019
Merged

bpo-37400: Fix test_os.test_chown() #14374

merged 1 commit into from
Jun 25, 2019

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jun 25, 2019

Use os.getgroups() rather than pwd.getpwall() to get groups.
Rename also test_chown() to test_chown_gid().

https://bugs.python.org/issue37400

Use os.getgroups() rather than grp.getgrall() to get groups.
Rename also the test to test_chown_gid().
@vstinner
Copy link
Member Author

Oh, grp.getgrall() was used, not pwd.getpwall(). I updated my PR.

@vstinner vstinner merged commit d7c87d9 into python:master Jun 25, 2019
@miss-islington
Copy link
Contributor

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8.
🐍🍒⛏🤖

@vstinner vstinner deleted the test_chown branch June 25, 2019 15:06
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 25, 2019
Use os.getgroups() rather than grp.getgrall() to get groups.
Rename also the test to test_chown_gid().
(cherry picked from commit d7c87d9)

Co-authored-by: Victor Stinner <[email protected]>
@bedevere-bot
Copy link

GH-14377 is a backport of this pull request to the 3.8 branch.

@bedevere-bot
Copy link

GH-14378 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 25, 2019
Use os.getgroups() rather than grp.getgrall() to get groups.
Rename also the test to test_chown_gid().
(cherry picked from commit d7c87d9)

Co-authored-by: Victor Stinner <[email protected]>
miss-islington added a commit that referenced this pull request Jun 25, 2019
Use os.getgroups() rather than grp.getgrall() to get groups.
Rename also the test to test_chown_gid().
(cherry picked from commit d7c87d9)

Co-authored-by: Victor Stinner <[email protected]>
vstinner added a commit that referenced this pull request Jun 25, 2019
Use os.getgroups() rather than grp.getgrall() to get groups.
Rename also the test to test_chown_gid().
(cherry picked from commit d7c87d9)

Co-authored-by: Victor Stinner <[email protected]>
lisroach pushed a commit to lisroach/cpython that referenced this pull request Sep 10, 2019
Use os.getgroups() rather than grp.getgrall() to get groups.
Rename also the test to test_chown_gid().
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
Use os.getgroups() rather than grp.getgrall() to get groups.
Rename also the test to test_chown_gid().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants